<?php 
include TMPL_PATH.'public/header.phtml';
?>
<div class="subnav">
    <div class="content-menu ib-a blue line-x">
        <a href='javascript:;' class="on"><em>圣诞节活动列表</em></a>  
    </div>
</div>
<div class="pad_10">
<div class="table-list">
    <table width="100%" cellspacing="0">
      <thead>
          <tr>
            <th align="center">邮箱</th>
            <th align="center">共享平台</th>           
            <th align="center">是否抽奖</th>
            <th align="left">奖品类型</th>
            <th align="left">奖品内容</th>           
            <th align="center">抽奖时间</th>
			<th align="center">是否使用</th>
          </tr>
      </thead>
                <tbody>
                    <?php 
                    foreach($list as $k=>$v):?>
                    <tr>
                        <td align="center"><?php echo $v['email']?></td>
                        <td align="center"><?php echo $v['share'];?></td>                       
                        <td align="center"><?php if($v['is_used']==0){echo "未抽奖";}else{echo "已抽奖";}?></td>
                        <td style="margin-right:5px;"><?php if($v['prize_type']==0){echo "没有";}elseif($v['prize_type']==1){echo "红包50";}elseif($v['prize_type']==2){echo "红包100";}elseif($v['prize_type']==3){echo "红包150";}elseif($v['prize_type']==4){echo "红包200";}elseif($v['prize_type']==5){echo "衬衫优惠码";}elseif($v['prize_type']==6){echo "西服优惠码";}?>						
						</td>
						<td align="left"><?php echo $v['prize_content'];?></td>
                        <td align="center"><?php echo date('Y-m-d H:i:s', $v['time'])?></td>
						<td align="center">
                        <?php 
                        if($v['prize_type']==5|| $v['prize_type']==6){
                                if($v['coupon_used']==0){
                                    echo "未使用";
                                }else{
                                 echo "已使用"; 
                                }
                        }                   
                        ?>
                        </td>
                    </tr>
                    <?php endforeach;?>
		</tbody>
	</table>
	<div id="pages"><?php echo $pageShow;?></div>
</div>

</div>
</body>
</html>
